﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace SchoolManagerMVC.Repository.EntityFramework
{
    [MetadataType(typeof (CourseMeta))]
    public partial class Course
    {
    }

    public class CourseMeta
    {
        [Required, Display(Name="Course Name")]
        public string CourseName { get; set; }

        [Required, Display(Name = "Course Number")]
        public int? CourseNumber { get; set; }

        [Display(Name = "Course Description")]
        public string CourseDescription { get; set; }

        [Required]
        public int? Teacher { get; set; }

        [Required]
        public int? Department { get; set; }

        [DisplayFormat(DataFormatString = "{0:c}")]
        [Required, Display(Name = "Course Cost")]
        public int? CourseCost { get; set; }
    }
}
